package com.ambiguity;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author Sean.Y.Du
 * @date 2018/3/13
 */
@Configuration
@ComponentScan
public class AmbiguityConfig {

    private Dessert dessert;

    @Autowired
    public void setDessert(@Qualifier("cold") Dessert dessert) {
        this.dessert = dessert;
    }
}
